home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1999 March
/
EnigmA AMIGA RUN 35 (1999)(G.R. Edizioni)(IT)[!][issue 1999-03].iso
/
earcd
/
devel
/
vbcc-68k-src
/
machines
/
amiga68k
/
libsrc
/
math
/
fmod.c
< prev
next >
Wrap
C/C++ Source or Header
|
1999-01-01
|
137b
|
11 lines
#include <math.h>
double fmod(double x,double y)
{
double a=x/y;
if(a>=0)
return x-y*floor(a);
else
return x-y*ceil(a);
}